Framework (A-Z)

Reference for Wiring version 1.0 Build 0100+ If you have a previous version, use the reference included with your software. If see any errors or have any comments, let us know.

Name

&& (logical AND)

Description Compares two expressions and returns true only if both evaluate to true. Returns false if one or both evaluate to false. The following list shows all possible combinations:

true && false // Evaluates false because the second is false
false && true // Evaluates false because the first is false
true && true // Evaluates true because both are true
false && false // Evaluates false because both are false
Syntax
expression1 && expression2
Parameters
expression1 any valid expression
expression2 any valid expression
Usage Application
Related || (logical OR)
! (logical NOT)
if()
Updated on July 07, 2011 11:08:34pm PDT

Creative Commons License